gtk/textview: Do not forcibly show text handles
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Nov 2020 20:15:47 +0000 (21:15 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Nov 2020 20:29:20 +0000 (21:29 +0100)
commit0ae93c8cdcd42ab14050a811a5c6ab28834e03b1
tree0c3732f59ad0dd7d88870a7549d87aa9754cd4eb
parentf9813019a7037f6f5ae3eae0f72d7267344c6c13
gtk/textview: Do not forcibly show text handles

The gtk_text_view_set_handle_position() function called some lines above
takes care of handle visibility already, also accounting for other
conditions (e.g. whether the handle points to contents onscreen).
Forcibly showing handles here misbehaves if the handle should stay hidden,
and somewhat expensively as it involves creating and throwing a native
surface every time.
gtk/gtktextview.c